package com.example.threaddemo.ThreadDemo06;

public class ThreadDemo06 {


    public static int count = 100;


    public static void main(String[] args) {


        MyThreadDemo m1 = new MyThreadDemo();
        MyThreadDemo m2 = new MyThreadDemo();

        Thread t1 = new Thread(m1);
        Thread t2 = new Thread(m2);

        t1.setName("线程1");
        t2.setName("线程2");


        t1.start();
        t2.start();


    }
}
